package com.guangjian.gjspring.common.dao;

import java.io.Serializable;
import java.util.List;

public interface BaseDao<T> {

    public void persist(T t);

    public T save(T t);

    public void delete(T t);

    public T find(Class<T> clazz, Serializable id);

    public List<T> find(String jpql);

    public List<T> find(String jpql, Object param);

    public List<T> find(String jpql, Object[] param);

    public int findTotalCount(String jpql);
}
